package com.liuwa.knowledge.query;

import com.liuwa.common.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.liuwa.common.bean.SortedPageQuery;
import org.springframework.data.domain.Sort;

/**
 * 出版社查询
 * 
 * @author liuwa
 * @date 2025-03-31 22:30:11
 */
@ApiModel(description = "出版社查询")
public class PublisherQuery extends SortedPageQuery{



    /** 名称 */
    @ApiModelProperty(name="name", required = true, value="名称")
    private String name;


    /** 地址 */
    @ApiModelProperty(name="address", required = false, value="地址")
    private String address;


    /** 联系电话 */
    @ApiModelProperty(name="tel", required = false, value="联系电话")
    private String tel;








    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }



    @Override
    public Sort defaultSort() {
        return Sort.by(Sort.Order.desc("create_time"));
    }

}
